# 获取脚本所在的目录

$SCRIPT_DIR = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent
Set-Location -Path $SCRIPT_DIR

# 获取根目录和后端目录

$ROOT_DIR = Split-Path -Path (Split-Path -Path $SCRIPT_DIR -Parent) -Parent
$BACKEND_DIR = Join-Path $ROOT_DIR "wex-backend"

# 切换到后端目录

Set-Location -Path $BACKEND_DIR


# 重新加载 pm2 配置

pm2 reload deploy_worker.config.js
